package com.myz.dashboard;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * 开启可视化的数据监控 @EnableHystrixDashboard
 * 访问Hystrix Dashboard：http://localhost:port/hystrix
 * 输入url http://hystrix-app:port/actuator/hystrix.stream
 * 被监控的Service: management.endpoints.web.exposure.include='hystrix.stream' # 暴露hystrix监控端点
 *
 * @author maoyz
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableHystrixDashboard
public class ServiceDashboardApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceDashboardApplication.class, args);
    }
}
